import axios from "axios"
// export default{
//  async getData(){
//    await axios.get('http://192.168.31.226:8081/sys/gpu/listByIndex',{
//         // params: {
//         //   acc: this.$data.acc,
//         // }
      
//       }).then(res=>{
//         console.log(res)
//         return res
//       }).catch(err=>{
//           alert("用户名或密码错误！" + err);
//       })

// }
// }
export const getAllData = params => {
  return axios.get('http://192.168.31.226:8081/sys/gpu/listByIndex',{ params: params });
};
export const getcpumulti = params => {
  return axios.get('http://192.168.31.226:8081/sys/cpu-multi/listByIndex',{ params: params });
};
export const getcpusingle = params => {
  return axios.get('http://192.168.31.226:8081/sys/cpu-single/listByIndex',{ params: params });
};
export const getmemory = params => {
  return axios.get('http://192.168.31.226:8081/sys/memory/listByIndex',{ params: params });
};
export const getatx = params => {
  return axios.get('http://192.168.31.226:8081/sys/atx/listByIndex',{ params: params });
};
